#include "rtuserver.h"
rtuServer::rtuServer(BridgeConfig &cfg)
{
    config(cfg);
}

void rtuServer::config(BridgeConfig &cfg)
{
    serialport = cfg.rtuconfig.rtuport;
    baud = cfg.rtuconfig.baudrate;
    stopbit = cfg.rtuconfig.stopbit;
    databits = cfg.rtuconfig.databit;
    parity = cfg.rtuconfig.parity;
}

void rtuServer::stop()
{
    
}


void rtuServer::exec()
{

}